package org.ssssssss.magicapi.utils;

import java.util.HashMap;
import java.util.Map;

public class MysqlMapToJava {

    private static Map<String, String> mysqlMappings = new HashMap<>(32);

    static {
        mysqlMappings.put("CHAR","String");
        mysqlMappings.put("VARCHAR","String");
        mysqlMappings.put("INT","Integer");
        mysqlMappings.put("FLOAT","Double");
        mysqlMappings.put("DOUBLE","Double");
        mysqlMappings.put("TINYINT","Byte");
        mysqlMappings.put("INT UNSIGNED","Long");
        mysqlMappings.put("BIT","Byte");
        mysqlMappings.put("TIMESTAMP","Long");
    }

    public static String getMap(String key){
        return mysqlMappings.get(key);
    }
}
